package org.springsecuritylearn.admin.dto;

import org.hibernate.validator.constraints.NotBlank;

/**
 * @author hyf
 * @Title: ${file_name}
 * @Package org.springsecuritylearn.admin.dto
 * @Description: ${todo}
 * @date 2018/5/2下午10:32
 */

public class BookInfo {


    private Long id;


    @NotBlank
    private String name;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BookInfo(Long id, String name) {
        this.id = id;
        this.name = name;
    }

    @Override
    public String toString() {
        return "BookInfo{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }

    public BookInfo() {
    }
}
